<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03 demo1</title>
</head>

<body>
    <p id="para">Hello</p>

    <script>
        function setColor(e) {
            console.log(e.target);
            console.log(this === e.target);
            e.target.style.color = 'red';
        }
        var para = document.getElementById("para");
        para.addEventListener('click', setColor);
    </script>
</body>

</html>